<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>Menu</TITLE>
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"/>
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/MenuOrganize/MenuOrganize.css"></LINK>
<script language="JavaScript" type="text/javascript" id="paramDirection">
var baseDirection = "../../../../../web/";
</script>
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" type="text/javascript" id="paramLanguage">
  LNG_POR_DEFECTO = "en_US";
</script>
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/menu.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="paramKeyField">
function getKeyField() {
	return document.frmMain.inpKey;
}
</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript">
function clickItem(nodeID, nodeName, isSummary) {
	addLink(nodeID, nodeName, (isSummary=="Y"));
	return true;
}

function dblClickItem(nodeID) {
	top.opener.submitCommandForm("EDIT", false, null, document.forms[0].myAction.value + "?Command=EDIT&" + getKeyField().name + "=" + nodeID, '_self');
	return true;
}

function addLink(nodeID, nodeName, isSummary) {
	var frm = document.frmMain;
	var isParent = true;
	var check = radioValue(frm.inpParentChild);
	if (check != null && check != "") isParent = (check=='parent');
	if (isParent==true) {
		frm.inpTop.value=nodeID;
		layer("paramTop", nodeName, true);
		enableCheck(isSummary);
	} else {
		frm.inpLink.value=nodeID;
		layer("paramLink", nodeName, true);
	}
	return true;
}

function enableCheck(enable) {
	var obj = document.frmMain.inpChild;
	obj[0].disabled=!enable;
	return true;
}
</SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Menu">
<FORM name="frmMain" action="WindowTree.html" method="post">
<input type="hidden" name="myAction" value="" id="fieldPage">
<INPUT type="hidden" name="Command">
<INPUT type="hidden" name="IsPopUpCall" value="1">
<INPUT type="hidden" name="inpparentId">
<INPUT type="hidden" name="inpKey" id="fieldKeyField">
<INPUT type="hidden" name="inpTabId" value="" id="fieldTabID">
<INPUT type="hidden" name="inptreeId" value="" id="fieldTreeID">
<INPUT type="hidden" name="inpTop">
<INPUT type="hidden" name="inpLink">
<div class="Popup_ContentPane_CircleLogo">
  <div class="Popup_WindowLogo">
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_organizeMenu" src="../../../../../web/images/blank.gif" border=0/>
  </div>
</div>
<table cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
        <tr class="Popup_NavBar_bg"><td></td>
          <td class="Popup_NavBar_separator_cell"></td>
          <td class="Popup_NavBar_bg_logo_left"></td>
          <td class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><IMG src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
          <td class="Popup_NavBar_bg_logo_right"></td>
          <td class="Popup_NavBar_Popup_title_cell"><span id="paramDescription">xxProcess window</span></td>
          <td class="Popup_NavBar_separator_cell"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
        <tr>
          <td class="Popup_SeparatorBar_bg"></td>
        </tr>
      </table>
    </td>
  </tr>

  <tr>
    <td>
      <div class="Popup_ContentPane_Client_Menu" style="width:100%">
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup" style="width:100%"><tr><td>

          <DIV id="paramMenu"> 
            <UL id="discard">
              <LI class="Popup_MenuOrganize_MenuElement" id="carpeta"> <A href="#" id="carpetaHref">xxAAAA</A></LI>
              <UL style="display:none;">
                <LI class="Popup_MenuOrganize_MenuElement"> <A href="#">xxhhhh</A></LI>
              </UL>
              <LI class="Popup_MenuOrganize_MenuElement"> <A href="#">xxBBBB</A></LI>
            </UL>
          </DIV>

        </td></tr></table>

      </div>
    </td>
  </tr>
</table>


<table cellspacing="0" cellpadding="0" width="100%">

  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
        <tr>
          <td class="Popup_SeparatorBar_bg"></td>
        </tr>
      </table>
    </td>
  </tr>


  <tr>
    <td>
      <div class="Popup_ContentPane_Client" style="overflow: auto; height:185px;">
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">

          <tr>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
          </tr>

          <tr>
            <td>
              <table cellspacing="0" cellpadding="0">
                <tr>
                  <td class="Radio_Check_ContentCell">
                    <INPUT type="radio" name="inpParentChild" value="child" checked="">
                  </td>
                  <td class="TitleCell">
                    <span class="LabelText"><nobr>Take element</nobr></span>
                  </td>
                </tr>
              </table>
            </td>
            <td colspan="2" class="ReadOnly_Text_ContentCell"><span class="Label_ReadOnly_Text" id="paramLink"></span></td>
            <td></td>
          </tr>

          <tr>
            <td>
              <table cellspacing="0" cellpadding="0">
                <tr>
                  <td class="Radio_Check_ContentCell">
                    <INPUT type="radio" name="inpParentChild" value="parent">
                  </td>
                  <td class="TitleCell">
                    <span class="LabelText"><nobr>Assign to</nobr></span>
                  </td>
                </tr>
              </table>
            </td>
            <td colspan="2" class="ReadOnly_Text_ContentCell"><span class="Label_ReadOnly_Text" id="paramTop"></span></td>
            <td></td>
          </tr>

          <tr><td height="20px"></td></tr>

          <tr>
            <td></td>
            <td style="text-align: left; text-align: -moz-left;">

              <table cellspacing="0" cellpadding="0">
                <tr>
                  <td class="Radio_Check_ContentCell">
                    <INPUT type="radio" name="inpChild" value="Y" disabled="">
                  </td>
                  <td class="TitleCell">
                    <span class="LabelText"><nobr>Inside folder</nobr></span>
                  </td>
                </tr>
              </table>
            </td>
            <td style="text-align: right; text-align: -moz-right;">

              <table cellspacing="0" cellpadding="0">
                <tr>
                  <td class="Radio_Check_ContentCell">
                    <INPUT type="radio" name="inpChild" value="N" checked>
                  </td>
                  <td class="TitleCell">
                    <span class="LabelText"><nobr>Same level</nobr></span>
                  </td>
                </tr>
              </table>
            </td>
            <td></td>
          </tr>

          <tr><td height="20px"></td></tr>

          <tr>
            <td colspan="4" class="Button_CenterAlign_ContentCell">
              <div>
                <a class="ButtonLink" href="#"
                  onfocus="this.className='ButtonLink_hover'; window.status='Ok'; return true;"
                  onblur="this.className='ButtonLink'; window.status=''; return true;"
                  onkeypress="this.className='ButtonLink_active'; return true;"
                  onkeyup="this.className='ButtonLink_hover'; return true;"
                  onclick="submitCommandForm('ASSIGN', false, null, 'WindowTree.html');return false;">

                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Ok';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;" id="linkButtonOk">
                    <tr>
                      <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Ok" title="Ok" src="../../../../../web/images/blank.gif" border=0 id="buttonOk"/></td>
                      <td class="Button_text Button_width" id="tdButtonOk">OK</td>
                      <td class="Button_right"></td>
                    </tr>
                  </table>
                </a>
              </div>
            </td>
          </tr>

        </table>
      </div>
    </td>
  </tr>
</table>



</form>
</BODY>
</HTML>
